package com.cloudoer.blog.mapper.dao;

import com.cloudoer.blog.mapper.AlbumMapper;
import com.cloudoer.blog.model.Album;
import com.cloudoer.blog.model.info.AlbumInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface AlbumDao extends AlbumMapper {
    List<Album> selectAll();

    List<Album> selectByPage(@Param(value = "pstart") Integer pstart, @Param(value = "psize") Integer psize);

    List<Album> selectByRanking();

    List<AlbumInfo> selectByPageInfo(@Param(value = "pstart") Integer pstart, @Param(value = "psize") Integer psize);

    List<AlbumInfo> selectByRankingInfo();

    Integer selectCount ();
}
